<template>
  <div id="mdd-rec">
    <el-col :span="24">
      <div
        v-for="(item, index) in catemdds"
        :key="index"
        class="mdd_rec_a"
        href="#"
      >
        <el-image :src="item.imgUrl"></el-image>
        <span class="mdd_rec_title">{{ item.name }}</span>
      </div>
    </el-col>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    catemdds: {},
  },
};
</script>
<style lang="scss" scoped>
/deep/ .el-col-24 {
  display: flex;
  flex-wrap: wrap;
  padding-top: 15px;
}
.mdd_rec_a {
  position: relative;
  box-sizing: border-box;
  padding-bottom: 8px;
  padding-right: 8px;
  width: 25%;
  cursor: pointer;
  &:nth-child(4n) {
    padding-right: 0;
  }
}
#mdd-rec .el-image {
  width: 100%;
  height: 230px;
}
.mdd_rec_title {
  font-size: 20px;
  color: #ffffff;
  position: absolute;
  left: 20px;
  bottom: 30px;
}
</style>